package com.sc.smartcommunity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("owner_complaint")
public class OwnerComplaint {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String ownerName; // 业主姓名
    private String phoneNumber; // 手机号码
    private String problemDesc; // 遇到的问题描述
    private LocalDateTime createTime; // 投诉创建时间
    private LocalDateTime updateTime; // 投诉更新时间

    public OwnerComplaint(Long id, String ownerName, String phoneNumber, String problemDesc, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.ownerName = ownerName;
        this.phoneNumber = phoneNumber;
        this.problemDesc = problemDesc;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    public OwnerComplaint() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getProblemDesc() {
        return problemDesc;
    }

    public void setProblemDesc(String problemDesc) {
        this.problemDesc = problemDesc;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}